using System.IO;
using Microsoft.WindowsAzure.ServiceRuntime;

namespace AzureContrib.WindowsAzure.ServiceRuntime
{
	internal class LocalResourceWrapper : ILocalResource
	{
		private readonly LocalResource localResource;

		public LocalResourceWrapper(LocalResource localResource)
		{
			this.localResource = localResource;
		}

		public int MaximumSizeInMegabytes
		{
			get { return localResource.MaximumSizeInMegabytes; }
		}

		public string Name
		{
			get { return localResource.Name; }
		}

		public DirectoryInfo RootPath
		{
			get { return new DirectoryInfo(localResource.RootPath); }
		}
	}
}